package com.kyivmohyla.kma2.client.presenter.refbook;

import com.smartgwt.client.widgets.tree.TreeNode;

public class TreeGridNode extends TreeNode {

    public TreeGridNode(int id, int reportsTo, String name, String description) {
        setId(id);
        setReportsTo(reportsTo);
        setName(name);
        setDescription(description);
    }

    public void setId(int value) {
        setAttribute("Id", value);
    }

    public void setDescription(String value) {
        setAttribute("Description", value);
    }

    public void setReportsTo(int value) {
        setAttribute("ReportsTo", value);
    }

    public void setName(String name) {
        setAttribute("Name", name);
    }

}